<template th:fragment="html(title)" >
    <script src="js/jquery/2.0.0/jquery.min.js"></script>
    <link href="css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
    <script src="js/bootstrap/3.3.6/bootstrap.min.js"></script>
    <script src="js/vue/2.5.16/vue.min.js"></script>
    <script src="js/axios/0.17.1/axios.min.js"></script>
    <script src="js/moment/2.22.2/moment.js"></script>  <!-- vue.js 格式化日期用的 -->
     <link href="css/back/back.css" rel="stylesheet" >
    <script src="js/back.js"></script>  <!--导航条js-->
    <script type="text/javascript">
        //判断是否为数字
        function isNumber(value,text){
            var r = /^0|([0-9]*[1-9][0-9]*)|(([0-9]+\\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\\.[0-9]+)|([0-9]*[1-9][0-9]*))$/;
            if(!r.test(value)){
                alert(text+ "只能为数字");
                return false;
            }
            return true;
        }

        //确认是否要删除
        function checkDeleteLink(){
            var confirmDelete = confirm("确认要删除");
            if(confirmDelete){
                return true;
            }
            return false;
        }

        //跳转函数
        function jump(page,vue){
            //mybaits框架里封装的第一页是1不是0
            if('first'== page && !vue.pagination.isFirstPage){
                vue.list(1);
            }
            else if('pre'== page &&	vue.pagination.hasPreviousPage ){
                vue.list(vue.pagination.pageNum-1);
            }
            else if('next'== page && vue.pagination.hasNextPage){
                vue.list(vue.pagination.pageNum+1);
            }
            else if('last'== page && !vue.pagination.isLastPage){
                vue.list(vue.pagination.pages);
            }
        }
        //跳转函数
        function jumpByNumber(start,vue){
            if(start!=vue.pagination.pageNum)
                vue.list(start);
        }
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title th:text="${title}" ></title>
</template>